package referencePass;

/**
 * Created by Veronica on 2017/3/28.
 */
/*String类型引用传递*/
public class RefDemo02 {
    public static void main(String[] args) {
        String str1 = "Hello";
        System.out.println(str1);
        tell(str1);
        System.out.println(str1);
    }
    public static void tell(String str2){   //String str2用来传递参数
        str2 = "jike";
    }
}
//string类型数据不可变，所以打印的结果相同